<? $this -> load -> view('header');?>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?libraries=geometry&sensor=false"></script>
<script type="text/javascript" >
 var map ;
	 function initialize() {
        var mapDiv = document.getElementById('map-canvas');
         map = new google.maps.Map(mapDiv, {
          center: new google.maps.LatLng('<?=$current_lat?>','<?=$current_lng?>'),
         	zoom : 15,
				mapTypeId : google.maps.MapTypeId.ROADMAP,
				streetViewControl: false,
				 navigationControl: true,
				    navigationControlOptions: {
				      style: google.maps.NavigationControlStyle.SMALL
				    }
        	});
        	<?=$map_script?>
      }
      function getOwnerDataList(){
      		$('#ownerList').html("");
		$.get("<?=$current_module?>/get_all_owner_land",function(data){
			$('#ownerList').html(data);
		});
	  }

getOwnerDataList();
      google.maps.event.addDomListener(window, 'load', initialize);
	
	
</script>
<div id="right">
	<h2><a href="#">การเป็นเจ้าของกรรมสิทธิ์ที่ดิน:</a></h2>
	<div class="articles">
		<div id="map-canvas" style="width: 100%; height: 250px"></div>
		<table width="100%">
			<tr>
				<td > 
					Vender<br/>	
					<div id="ownerList"></div>
				</td>
				<td ><div id="user_infor"></div></td>
			</tr>
		</table>
	</div>
</div>
<? $this -> load -> view('footer.php');?>